<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}

<div class="x-nav">
	<span class="layui-breadcrumb">
		<a>首页</a>
		&gt;
		<a>客户管理</a>
		&gt;
		<a>提现审核</a>
	</span>
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
		<i class="layui-icon" style="line-height:30px">ဂ</i>
	</a>
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin:3px 5px 0 0;float:right" href="?m={$m}&c={$c}" title="返回">
		<i class="layui-icon" style="line-height:30px">&lt;</i>
	</a>
</div>

<div class="x-body">
	<div class="layui-main">
		<form class="layui-form ajaxform" action="?" method="post">
			<input type="hidden" name="m" value="{$m}" />
			<input type="hidden" name="c" value="{$c}" />
			<input type="hidden" name="a" value="{$a}" />
			<input type="hidden" name="id" value="{$id}" />
			<div class="layui-form-item">
				<label class="layui-form-label">银行：</label>
				<div class="layui-input-inline form-txt">{$data['bank']}</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">银行卡：</label>
				<div class="layui-input-inline form-txt">{$data['bankcard']}</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">姓名：</label>
				<div class="layui-input-inline form-txt">{$data['truename']}</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">金额：</label>
				<div class="layui-input-inline form-txt">{$data['money']}</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">备注：</label>
				<div class="layui-input-inline"><input type="text" name="notes" autocomplete="off" class="layui-input"></div>
				<div class="layui-form-mid layui-word-aux"></div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label" style="float: left;">审核：</label>
				<div class="layui-input-block">
					<input type="radio" name="status" value="1" title="同意提现" checked="checked">同意提现
					<input type="radio" name="status" value="2" title="拒绝提现">拒绝提现
				</div>
			</div>
			<div class="layui-form-item">
			<label class="layui-form-label" style="float: left;">&nbsp;</label>
				<div class="layui-input-block"><button class="layui-btn" type="submit">确定</button></div>
			</div>
		</form>
	</div>
</div>

<script>
	function ajaxbefore()
	{
		var status = $('input[name="status"]:checked').val();
		var msg = status == 1 ? '你选择的是 “同意提现”，请确定是否已经转账！ ' : '你选择的是 “拒绝提现”，金额会退回到用户账户！ ';
		
		return confirm(msg + '本操作不可撤回！');
	}
	function ajaxback(res)
	{
		if(res.error > 0)
		{
			layer.msg(res.msg,{icon: 2});
		}
		else
		{
			layer.msg(res.msg,function(){
				location.href = '?m={$m}&c={$c}';
			},{icon: 1});								
		}
	}
</script>

{template index/footer}